package com.naxian.service.Impl;

import com.github.pagehelper.PageInfo;
import com.naxian.mapper.PersonsMapper;
import com.naxian.pojo.Persons;
import com.naxian.service.person.PersonService;
import com.naxian.util.JsonResult;
import com.naxian.vo.writeResume.WriteVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class PersonServiceImpl implements PersonService {
    @Autowired
    private PersonsMapper personsMapper;

    @Override
    public boolean save(Persons person) {
        return false;
    }

    @Override
    public boolean update(Persons person) {
        return false;
    }

    @Override
    public Persons getById(int perId) {
        return null;
    }

    @Override
    public JsonResult getByTelno(Long perTel) {
        return null;
    }

    @Override
    public Persons login(String username, String password) {
        return null;
    }

    @Override
    public JsonResult loginByTelno(Long perTel, String password) {
        return null;
    }

    @Override
    public PageInfo<Persons> findByPage(Integer pageNum) {
        return null;
    }

    @Override
    public JsonResult loginByPerNameAndPwd(String perName, String password) {
        return null;
    }

    @Override
    public int addPersonInfo(Persons persons) {
        Integer perId =  persons.getPerId();
        persons = personsMapper.selectByPrimaryKey(perId);
        int rows =personsMapper.insert(persons);
        return  rows;
    }
}
